package day0317_train01;

import java.util.Random;
import java.util.Scanner;

public class Test8 {
    public static void main(String[] args) {
        //类型  变量名=new 类型();



        //1.生成一个公式
        Random  ra=new Random();
        int num1=ra.nextInt(100);//产生随机数  //[0,100]
        int num2=ra.nextInt(100);//产生随机数
        System.out.println(num1  +  " % "  +num2);

        //2.输入答案
        int answer=new Scanner(System.in).nextInt();

        //3.判断对错
        String rs =  (answer==num1%num2) ? "回答正确"  :  "回答错误";
        System.out.println(rs);
    }
}








